package com.igeek.collateral.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评估报告
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("assess")
@ApiModel(value="Assess对象", description="评估报告")
public class Assess implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评估报告ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评估报告编号code")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "押品编号Id")
    @TableField("collateral_id")
    private Integer collateralId;

    @ApiModelProperty(value = "申请人 资产销售员")
    @TableField("apply_staff")
    private String applyStaff;

    @ApiModelProperty(value = "审批人 资产审核员")
    @TableField("audit_staff")
    private String auditStaff;

    @ApiModelProperty(value = "外部评估日期")
    @TableField("evaluate_date")
    private Date evaluateDate;

    @ApiModelProperty(value = "外部评估有效期")
    @TableField("evaluate_validity")
    private Date evaluateValidity;

    @ApiModelProperty(value = "外部评估机构")
    @TableField("agency_id")
    private Integer agencyId;

    @ApiModelProperty(value = "评估方法(市场比较法、折旧法、收益还原法)")
    @TableField("evaluate_method")
    private String evaluateMethod;

    @ApiModelProperty(value = "外部评估金额")
    @TableField("evaluate_value")
    private Double evaluateValue;

    @ApiModelProperty(value = "我行确定价值")
    @TableField("confirm_value")
    private Double confirmValue;

    @ApiModelProperty(value = "权重")
    @TableField("weights")
    private Double weights;

    @ApiModelProperty(value = "最终评估金额")
    @TableField("latest_value")
    private Double latestValue;

    @ApiModelProperty(value = "评估单位(0：十万 1：百万 2：千万)")
    @TableField("unit")
    private Integer unit;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    private Integer isDeleted;


    @ApiModelProperty(value = "状态 1：待评估  3：已完成评估  4：评估未通过")
    @TableField("status")
    private Integer status;



}
